package model

import (
	"github.com/starmotioncf/soutchatinternal/constant"
)

type SensitiveWord struct {
	Id        int64                   `json:"id" gorm:"column:id;primaryKey;autoIncrement"`
	Typ       constant.SensitiveType  `json:"typ" gorm:"column:typ;default:1"`
	Level     constant.SensitiveLevel `json:"level" gorm:"column:level;default:1"`
	Content   string                  `json:"content" gorm:"column:content;default:"`
	DeletedAt int64                   `json:"deleted_at" gorm:"column:deleted_at;default:0"`
}

func (SensitiveWord) TableName() string {
	return "sensitive_word"
}

func (v *SensitiveWord) String() string {
	return v.Content
}
